package com.apposcopy.ella.runtime;

import android.content.Context;
import android.content.Intent;
import android.location.Location;
import android.util.Log;


public class LocationRecorder extends Recorder {
	private static final String TAG = LocationRecorder.class.getSimpleName();
	@Override
	public void sendLocation(Location location) {
		Intent sendIntent = new Intent();
		sendIntent.setAction("edu.iscas.appcheckclient.broadcastreceiver.SEND_LOCATION");
		sendIntent.putExtra("HOOKED_LOCATION", location);
		if(Ella.applicationContext != null){
			Ella.applicationContext.sendBroadcast(sendIntent);
		}else{
			Log.e(TAG, "No Context found");
		}
	}

}
